﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CH.Easy.UI.Domain.PageAgg;
using CH.Easy.UI.Domain;
using CH.Easy.UI.PageAgg;

namespace CH.Easy.UI.Repository
{
    public class PageRepository : AbstractRepository<BasePage>, IPageRepository
    {
        public List<PagePositionModule> GetModuleList(int pageID, int positongID)
        {
            return GetTable<PagePositionModule>().Where(p => p.PageID == pageID && p.PositionID == positongID).OrderBy(p => p.Order).ToList();
        }
    }
}
